package com.woniuxy.homepage;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication(scanBasePackages = "com.woniuxy.homepage.core")
@EnableEurekaClient
@MapperScan(value = "com.woniuxy.homepage.core.mapper")
@EnableFeignClients
@EnableCaching //开启声明式缓存
@EnableScheduling //启用定时任务
public class HomepageServiceStarterApplication {

    public static void main(String[] args) {
        SpringApplication.run(HomepageServiceStarterApplication.class, args);
    }

}
